﻿using EasyCore.Domain.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyAdmin.Domain.Entities.Systems
{
    /// <summary>
    /// 页面菜单按钮
    /// </summary>
    [SugarTable("sys_menu_operation")]
    public class SysMenuOperation : AuditedEntity
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsNullable = false, ColumnDescription = "菜单操作唯一标识")]
        public long Id { get; set; }

        /// <summary>
        /// 菜单唯一标识
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "菜单唯一标识")]
        public long MenuId { get; set; }

        /// <summary>
        /// 按钮编码
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "按钮编码", Length = 30)]
        public string OperationCode { get; set; }

        /// <summary>
        /// 按钮名称
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "按钮名称", Length = 30)]
        public string OperationName { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "是否禁用")]
        public bool IsDisabled { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "排序")]
        public int OrderSort { get; set; }
    }
}
